package com.microlecture.mapper;

import com.microlecture.entity.Cookbook;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CookbookMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Cookbook record);

    Cookbook selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cookbook record);

    List<Cookbook> selectPageByCondition(
            @Param("userid") Integer userid,
            @Param("searchContent") String searchContent);

}